package ku.report.service;

import java.util.List;

import ku.report.dao.WeekReportDAO;
import ku.report.dto.WeekReportDTO;
import ku.report.idao.IWeekReportDAO;

public class WeekReportService {
	private static WeekReportService weekReportService;
	private IWeekReportDAO weekReportManager;
	
	public static WeekReportService getInstance(){
		if(weekReportService == null){
			weekReportService = new WeekReportService();
		}
		return weekReportService;
	}
	
	public WeekReportService(){
		weekReportManager = new WeekReportDAO();
	}
	
	public List<WeekReportDTO> WeekReportList(){
		return weekReportManager.WeekReportList();
	}
	
	public int submitReport(WeekReportDTO wdto){
		return weekReportManager.submitReport(wdto);
	}
	
	public WeekReportDTO showWeekDetail(int wseq){
		return weekReportManager.showWeekDetail(wseq);
	}
	
	public int doUpdate(WeekReportDTO wdto){
		return weekReportManager.doUpdate(wdto);
	}
	
	public int doDelete(int wseq){
		return weekReportManager.doDelete(wseq);
	}
	
	public int pmCheck(WeekReportDTO wdto){
		return weekReportManager.pmCheck(wdto);
	}
	
	public List<WeekReportDTO> getAllWeekReport(String weeknum){
		return weekReportManager.getAllWeekReport(weeknum);
	}
	
	public int submitWtotalReport(WeekReportDTO wdto){
		return weekReportManager.submitWtotalReport(wdto);
	}
	
	public List<WeekReportDTO> weekTotalReportList(){
		return weekReportManager.weekTotalReportList();
	}
}